package com.itheima.common;

public class R {
    private Integer code; // 返回的状态码,返回1表示成功,0或者其他表示失败
    private Object data; // 返回的数据信息
    private String msg; // 异常信息提示

    public R(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
